if (!gets<caret>_s(buffer, sizeof(buffer)-1))